PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-14 10:11:27.033266+00:00 (UTC)
In US/Central Time, this is 2024-03-14 05:11:27.033266-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/14c86fe44387f797faea5a518c8dcdf44059f7187e1752869dd81e11f7f35245.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/743b4ffc49cbfb5bb43abf2904728ab2a73550f731b2e26de143b80e4daadc19.png
fig = px.line(vix)
fig.show()
../_images/5eab6322691a642b78221b65852956f455d44426e81cc0a71eb567783e71dfcb.png